from geoserver.catalog import Catalog
cat = Catalog("http://localhost:8011/geoserver/rest")
all_layers = cat.get_layers()
print(all_layers)